<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService.defaultContrib.override">

  <require>org.nuxeo.ecm.platform.content.template.service.ContentTemplateService.defaultContrib</require>

  <extension target="service:org.nuxeo.ecm.platform.content.template.service.ContentTemplateService" point="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService--factory">
    <contentFactory class="org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedFactory" name="SimpleTemplateFactory"/>
    <contentFactory class="org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedRootFactory" name="SimpleTemplateRootFactory"/>
    <contentFactory class="org.nuxeo.ecm.platform.content.template.factories.ImportBasedFactory" name="ImportFactory"/>
  </extension>
  <extension target="service:org.nuxeo.ecm.platform.content.template.service.ContentTemplateService" point="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService--factoryBinding">
    <factoryBinding factoryName="SimpleTemplateRootFactory" name="RootFactory" targetType="Root">
      <acl>
        <ace granted="true" permission="Everything" principal="Administrator"/>
        <ace granted="true" permission="Read" principal="members"/>
      </acl>
      <template>
        <templateItem id="default-domain" title="Domain" typeName="Domain"/>
      </template>
    </factoryBinding>
    <factoryBinding factoryName="SimpleTemplateFactory" name="DomainFactory" targetType="Domain">
      <template>
        <templateItem id="workspaces" title="Workspaces" typeName="WorkspaceRoot"/>
        <templateItem id="sections" title="Sections" typeName="SectionRoot"/>
        <templateItem id="templates" title="Templates" typeName="TemplateRoot"/>
      </template>
    </factoryBinding>
    <factoryBinding factoryName="SimpleTemplateFactory" name="SectionRootFactory" targetType="SectionRoot">
      <acl>
        <ace granted="true" permission="CanAskForPublishing" principal="members"/>
      </acl>
    </factoryBinding>
  </extension>

</component>
